﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sms_back.aspx.cs" Inherits="AnyOffice.general.status_bar.sms_back" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>发送短信</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script Language="JavaScript">
function CheckForm()
{
   if(document.Form1.txtContent.value=="")
   { alert("短信内容不能为空！");
     return (false);
   }
   
   /*
   if(document.Form1.Content.value.length>100)
   { alert("短信内容最多100个字！");
     return (false);
   }
   */

   document.Form1.submit();
}

function CheckSend()
{
  if(event.keyCode==10)
	CheckForm();  
}

		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" runat="server">
			<table class="TableBlock" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td nowrap class="TableData">收信人：</td>
					<td class="TableData">
						<input type="hidden" name="ToId" id="ToId" runat="server"> <input type="text" name="ToName" class="BigStatic" readonly id="ToName" runat="server">
					</td>
				</tr>
				<tr>
					<td nowrap class="TableData" valign="top">
						短信内容：</td>
					<td class="TableData">
						<textarea cols="30" name="txtContent" rows="3" class="BigInput" wrap="on" onkeypress="CheckSend()"
							id="txtContent" runat="server"></textarea><br />按Ctrl+回车键 发送消息
					</td>
				</tr>
				<tr align="center" class="TableControl">
					<td colspan="2" nowrap>
						<input type="button" value="发送" class="BigButton" onclick="CheckForm();">&nbsp;&nbsp;
						<input type="button" value="清空" class="BigButton" onclick="document.Form1.txtContent.value='';">&nbsp;&nbsp;
						<input type="button" value="关闭" class="BigButton" onClick="parent.close();">
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
